/*!
 * Web-Forkers
 * http://code.google.com/p/web-workers/
 *
 * version 0.01 PREVIEW
 *
 * Copyright 2010, Evgeny Burzak
 * Licensed under the GPL Version 3 license.
 *
 * Simple hello test.
 *
 */

class Hello extends Forker {

    public function new() {

        super();

        var that = this;

        addEventListener('message', function ( e : Dynamic ) : Void
        {
            if(e.data == "Hello Forker!")
                that.postMessage("Hello!");

        }, false);
    }

    static function main() {

        new Hello();

    }

}

